home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindlink.net!news
- From: genew@mindlink.bc.ca (Gene Wirchenko)
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Subject: Re: Hungarian notation
- Date: Wed, 24 Jan 1996 04:45:41 GMT
- Organization: MIND LINK! - British Columbia, Canada
- Message-ID: <4e4djv$8gk@fountain.mindlink.net>
- References: <30C40F77.53B5@swsbbs.com> <4bd <4cc2b2$11jq@navajo.gate.net> <4cud8f$gup@news.netvision.net.il> <4dttefINNo29@keats.ugrad.cs.ubc.ca> <Pine.HPP.3.91.960122145028.27524A-100000@clear.cs.byu.edu> <dewar.822407363@schonberg>
- NNTP-Posting-Host: line109.nwm.mindlink.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- dewar@cs.nyu.edu (Robert Dewar) wrote:
-
- >Douglas said
-
- >"The way I was taught, you use typedefs only for variables that are likely
- >to change type (and you want to change all of the instances of that type
- >at once) and for cross-platform portability (in a multi-language
- >environment like Windows or when you are saving data to disk). Using it
- >for most other things will, as you said, only hamper coding and debugging
- >efforts. However, to use those examples to induce "typedefs are useless"
- >is jumping to a bad conclusion. If you want to argue that the uses that
- >I gave are bad, we can do that, but to generalize without looking at all
- >potential uses isn't a good idea."
-
- >It is really remarkable listening to this debate how little understanding
- >of abstract types most people have. A lot of writers, like Douglas, seem
- >to almost completely confuse the notions of type and representation.
-
- >Indeed one could say that HN is all about enforcing this confusion!
- >and making sure that type abstraction is not used as a tool in your
- >program.
-
- A nasty point, but I think yes.
-
- >Most amazing!
-
- I use HNish naming conventions a bit. More I use them as
- abbreviations for part of the meaning. For an input file handle, I
- might use "fhinput".
- As to the alphabet soup, I've seen: it's nice at the system
- level. I was an early user of CTOS ('81/'82 or so) and they
- documented system call parameters using prefixes. It helped me get
- the type right and once I got used to it was a great timesaver.
- BUT... it is not abstract datatyping.
-
- Sincerely,
-
- Gene Wirchenko
-
- C Pronunciation Guide:
- y=x++; "wye equals ex plus plus semicolon"
- x=x++; "ex equals ex doublecross semicolon"
-
-